package org.zhangchao.poi.excel.entity;


import java.util.Date;

import org.zhangchao.poi.excel.common.annotation.DateResources;
import org.zhangchao.poi.excel.common.annotation.ExcelResources;

/**
 * 用户实体
 * @author zhangchao
 *
 */
public class User {
	
	@ExcelResources(columnTitle="ID",order=1)
	private Integer userID;
	
	@ExcelResources(columnTitle="名称",order=2)
	private String userName;
	
	@ExcelResources(columnTitle="密码",order=3)
	private String password;
	
	@ExcelResources(columnTitle="年龄",order=4)
	private Integer age;
	
	@ExcelResources(columnTitle="生日",order=5)
	//@DateResources(pattern = "yyyy-MM-dd")
	private Date birthDay;
	
	@ExcelResources(columnTitle="注册时间",order=6)
	@DateResources(pattern = "yyyy-MM-dd")
	private Date insertDate;
	
	@ExcelResources(columnTitle="修改时间",order=7)
	@DateResources(pattern = "yyyy-MM-dd")
	private Date updateDate;
	
	public User() {
		super();
	}

	public User(Integer userID, String userName, String password, Integer age,
			Date birthDay, Date insertDate, Date updateDate) {
		super();
		this.userID = userID;
		this.userName = userName;
		this.password = password;
		this.age = age;
		this.birthDay = birthDay;
		this.insertDate = insertDate;
		this.updateDate = updateDate;
	}

	public Integer getUserID() {
		return userID;
	}

	public void setUserID(Integer userID) {
		this.userID = userID;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Date getBirthDay() {
		return birthDay;
	}

	public void setBirthDay(Date birthDay) {
		this.birthDay = birthDay;
	}

	public Date getInsertDate() {
		return insertDate;
	}

	public void setInsertDate(Date insertDate) {
		this.insertDate = insertDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	@Override
	public String toString() {
		return "User [userID=" + userID + ", userName=" + userName
				+ ", password=" + password + ", age=" + age + ", birthDay="
				+ birthDay + ", insertDate=" + insertDate + ", updateDate="
				+ updateDate + "]";
	}
	
}
